<?php
error_reporting(E_ALL);

$link = mysql_connect('localhost', 'root','');
mysql_select_db('GuildProgress', $link);

if(isset($_REQUEST['FROM']) and isset($_REQUEST['TO']))
{
	$res = mysql_query("SELECT profileoptionname, profileoptionvalue FROM profileoption WHERE profileid = {$_GET['FROM']}", $link);
	while (list($poname,$povalue) = mysql_fetch_row($res))	
	{
		mysql_query("INSERT INTO profileoption SET profileoptionname = '$poname', profileoptionvalue = $povalue, profileid = {$_GET['TO']}",$link);
	}
	
	
	
	
	
	
}
?>